<template>
	<view class="uni_box security">
		<u-navbar :is-back="false" title="">
			<view class="slot_content">
				<view class="nav_img" @click="backTo">
					<image src="@/static/17.svg"></image>
				</view>
				<view class="nav_title">安全中心</view>
			</view>
		</u-navbar>
		<view class="item" @click="router('/pages/setup/changePassword?type=1')">
			<text>修改登录密码</text>
			<image src="@/static/20.svg"></image>
		</view>
		<view class="item" @click="router('/pages/setup/setLock')">
			<text>修改交易密码</text>
			<image src="@/static/20.svg"></image>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			backTo() {
				uni.navigateBack()
			},
			router(url) {
				uni.navigateTo({
					url
				})
			}
		}
	};
</script>

<style scoped lang="scss">
	.security {
		padding: 0 30rpx;
		box-sizing: border-box;

		.item {
			height: 160rpx;
			border-bottom: 1px solid #F0F0F0;
			display: flex;
			justify-content: space-between;
			align-items: center;

			text {
				color: #2A2A2A;
				font-size: 28rpx;
			}

			image {
				width: 48rpx;
				height: 48rpx;
			}
		}
	}
</style>
